This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.
This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.
The list of the themes | Global methods by category | Global methods by name | The list of the classes | The list of the controls |
class CMBitmap | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
class, ICM | Mo, 15. Jul 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
A class for a bitmap. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
Inside a memoryblock the Pixels are stored in 16bit words. You can create it yourself if you set all properties correctly or using the functions CreateCMBitmapFromPicture and NewCMBitmap. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Channels as integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
property, ICM | Mo, 15. Jul 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
The number of channels in this bitmap. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
For example 3 on RGB or 4 on CMYK. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ColorSpaceType as integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
property, ICM | Mo, 15. Jul 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
The Signature of the Colorspace. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
The list of Colorspace signatures:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Data as Memoryblock | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
property, ICM | Mo, 15. Jul 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
The binary data for the pixels stored in 16bit words. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Height as integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
property, ICM | Mo, 15. Jul 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
The height of the Bitmap in Pixels. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Invert | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, ICM | Mo, 15. Jul 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Inverts the bitmap data. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
Requires correct settings for rowbytes, height and data properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Picture as Picture | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
method, ICM | Mo, 15. Jul 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
Creates a picture from the CMBitmap. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
From a 16bit picture to a Realbasic picture with 8 bit per Pixel you certainly loose some precision. Requires correct settings for rowbytes, width, height and data properties. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PixelSize as integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
property, ICM | Mo, 15. Jul 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
The number of bytes in one pixel. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
Normally: PixelSize=2*Channels, because we use 16bit words for data storing. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RowBytes as integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
property, ICM | Mo, 15. Jul 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
The number of bytes in one row. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes:
Normally: rowbytes=pixelsize*width+padding Where padding is some extra bytes. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Width as integer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
property, ICM | Mo, 15. Jul 2002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Function:
The width of the Bitmap in Pixels. |
Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.